using GalaSoft.MvvmLight.Ioc;
using Microsoft.Practices.ServiceLocation;

namespace Marc.JwOrgClient.ViewModels
{
    public class ViewModelLocator
    {
        public ViewModelLocator()
        {
            ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);

            SimpleIoc.Default.Register<PodcastDownloadViewModel>();
        }

        public PodcastDownloadViewModel PodcastDownloadViewModel
        {
            get { return ServiceLocator.Current.GetInstance<PodcastDownloadViewModel>(); }
        }

        public static void Cleanup()
        {
        }
    }
}